#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMenu>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void loadQssFile(); //加载qss
    bool eventFilter(QObject *obj, QEvent *event) override; // 添加事件过滤器声明

protected:
    void updateMaximizeButton(bool maximized);
    void paintEvent(QPaintEvent *event) final;

private slots:
    void on_pushButton_systemPerferences_clicked();

    void on_pushButton_calibrationCorrection_clicked(bool checked);

private:
    Ui::MainWindow *ui;
    QMenu* m_menu;

private:
    void syncPosition();
};

#endif // MAINWINDOW_H
